import request from '@/utils/request'

// 查询咨询案例分析列表
export function listCase(query) {
  return request({
    url: '/consult/case/list',
    method: 'get',
    params: query
  })
}

// 查询咨询案例分析详细
export function getCase(caseId) {
  return request({
    url: '/consult/case/' + caseId,
    method: 'get'
  })
}

// 新增咨询案例分析
export function addCase(data) {
  return request({
    url: '/consult/case',
    method: 'post',
    data: data
  })
}

// 修改咨询案例分析
export function updateCase(data) {
  return request({
    url: '/consult/case',
    method: 'put',
    data: data
  })
}

// 删除咨询案例分析
export function delCase(caseId) {
  return request({
    url: '/consult/case/' + caseId,
    method: 'delete'
  })
}
